<div class="content-wrapper">
    <form method="post" name="region-form" class="form-horizontal" id="region-form">
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right" id="dbshop-menu-top">
            <a href="<?php echo $this->url('payment');?>" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> <?php echo $this->translate('返回支付列表'); ?></a>
            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-check"></i> <?php echo $this->translate('保存支付方式'); ?></button>
            <?php echo $this->HelpUrl($this->paymentCode); ?>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title"><?php echo $this->translate('编辑支付方式'); ?></h3>
                    </div>

                    <div class="box-body">
                        <?php if($this->formInput) foreach ($this->formInput as $value) { if($value['type'] == 'hidden') { echo $value['hidden']; continue; } ?>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->escapeHtml($value['name']); ?></label>
                            <div class="<?php echo $value['width']??'col-sm-6'; ?>">
                                <?php echo ($value['type'] == 'image' ? '<img src="' . $this->basePath($value['input']) . '" style="border:1px solid #DDDDDD" />' . $value['hidden'] : $value['input']); ?>
                            </div>
                        </div>
                        <?php } ?>

                    </div>

                </div>
            </div>
        </div>

    </section>
    </form>
</div>
